//
//  ViewController.swift
//  ProductViewDemo
//
//  Created by youmy on 2018/11/27.
//  Copyright © 2018 youmy. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.groupTableViewBackground
    
        let dic = resouceObjectFromFile(fileName: "product.json")
        let model = GZAZJOrderDetailModel(fromDictionary: dic)
        
        let productV = YMProductView.nibView()
        productV.valueConfig(model: model)
        productV.originY = 50
        view.addSubview(productV)
    }
}

